//
//  NSData+Additions.m
//  Gainko
//
//  Created by expro on 12-11-13.
//  Copyright (c) 2012年 RanCheng.gu. All rights reserved.
//

#import "NSData+Additions.h"

@implementation NSData (Additions)

-(NSDictionary*) convertToDictionary{
    NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc] initForReadingWithData:self];
    NSDictionary * dic = (NSDictionary*)[unarchiver decodeObjectForKey: @"dictionay"];
    [unarchiver finishDecoding];
    return dic;
}

@end
